﻿using Microsoft.AspNetCore.Mvc.Infrastructure;

namespace Microsoft.AspNetCore.Mvc;

public static class ControllerBaseExtensions
{
    public static BpctFileStreamResult BpctResult(this ControllerBase _, Stream fileStream, string contentType, string fileDownloadName, string eTag)
    {
        return new BpctFileStreamResult(fileStream, contentType, eTag)
        {
            FileDownloadName = fileDownloadName
        };
    }
}